package com.lfs.feishu;

import com.lark.oapi.Client;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class FeishuApplication {

    private static final String APP_ID = "cli_a8626422c6375013";
    private static final String APP_SECRET = "MpxFeCxXGstHt2pG70sgieamdOk2RRSg";

    public static void main(String[] args) {
        SpringApplication.run(FeishuApplication.class, args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    @Bean
    public Client feishuClient() {
        return Client.newBuilder(APP_ID, APP_SECRET).build();
    }
}
